import request from '@/utils/request';

export async function paperList(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/detail', {
    params,
  });
}

export async function sysList(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/sys/getList', {
    params,
  });
}

export async function updateTag(data?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/studentTag/updateTag', {
    method: 'POST',
    data,
  });
}

export async function getValueAndTextList(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/sys/getValueAndTextList', {
    params,
  });
}

export async function getActivityListByName(params: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/getActivityListByName', {
    params,
  });
}

export async function getGroupListByAid(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/getGroupListByAid', {
    params,
  });
}

export async function questionDelete(data?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/question/delete', {
    method: 'POST',
    data,
  });
}

export async function listByLevel(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/question/listByLevel', {
    params,
  });
}

export async function addBatch(data?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/question/addBatch', {
    method: 'POST',
    data,
  });
}


export async function downloadSgf(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/question/downloadSgf', {
    params,
  });
}